package com.sgb.kjwl.model.entity.enterprise;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.swgk.core.base.model.entity.VideoBean;
import com.sgb.kjwl.model.entity.transport.SingleItemConstant;

import java.util.List;

/**
 * 作者:张磊
 * 日期:2020/12/26 0026
 * 说明:
 */
public class ListBean implements MultiItemEntity {
    /**
     * LinkmanPhone : *************
     * budgetPrice : -1
     * classificationField :
     * classificationId :
     * classificationName :
     * clicks : 0
     * companyNo : 0
     * createTime : 1608881679838
     * createUser : 202010096775593
     * demandStatus : 1
     * demandTitle : 18482304469商标需求
     * enterpriseTypeId :
     * id : 184
     * idDelete : 0
     * industryTypeId :
     * industryTypeName :
     * linkMan : 18482304469商标需求
     * linkmanPhone : 18212345678
     * note :
     * patentStatus :
     * patentTypeId :
     * patentTypeName :
     * publishType : 1
     * realName : 蒲涛
     * registeredAddr : {}
     * requirementTypes : 1
     * specifications : 18482304469商标需求
     * taxReturns :
     * taxScale :
     * trademark : 第01类-化学原料
     * trademarkId : 01
     * trademarkType : 6
     * type : 0
     * updateTime : 1608881679838
     * updateUser : 202010096775593
     * userAccount : 18482304469
     * userNo : 202010096775593
     */

    public String LinkmanPhone;
    public double budgetPrice;
    public String classificationField;
    public String classificationId;
    public String classificationName;
    public int clicks;
    public String companyNo;
    public long createTime;
    public String createUser;
    public String demandStatus;
    public String demandTitle;
    public String enterpriseTypeId;
    public int id;
    public int idDelete;
    public String industryTypeId;
    public String industryTypeName;
    public String linkMan;
    public String linkmanPhone;
    public String note;
    public String patentStatus;
    public String patentTypeId;
    public String patentTypeName;
    public int publishType;
    public String realName;
    public String registeredAddr;
    public String servicePrincipal;
    public int requirementTypes;
    public String specifications;
    public String taxReturns;
    public String taxScale;
    public String trademark;
    public String trademarkId;
    public int trademarkType;
    public int type;
    public long updateTime;
    public String updateUser;
    public String userAccount;
    public String userNo;
    public String logo;
    public String image;
    public int offerStatus;
    public String offerPerson;
    private List<VideoBean> videos;

    public List<VideoBean> getVideos() {
        return videos;
    }

    public void setVideos(List<VideoBean> videos) {
        this.videos = videos;
    }

    @Override
    public int getItemType() {
        //普通列表信息
        int itemType = SingleItemConstant.TYPE_ONE;
        if (videos != null && videos.size() == 1) {
            //单图
            itemType = SingleItemConstant.TYPE_THREE;
        } else if (videos != null) {
            //多图
            itemType = SingleItemConstant.TYPE_TWO;
        }
        return itemType;
    }
}